package com.partner.service.sysright;

import java.util.List;

import org.springframework.stereotype.*;
import org.springframework.beans.factory.annotation.*;

import com.beiyan.commons.dbo.pagination.Page;
import com.beiyan.commons.dbo.pagination.PageParameterMaker;
import com.partner.frame.*;
import com.partner.bean.sms.Sms;
import com.partner.bean.sysright.TSysuser;
import com.partner.bean.sysright.TSysuserVo;
import com.partner.mapper.sms.SmsMapper;
import com.partner.mapper.sysright.TSysuserMapper;

@Service("sysManagerService")
public class SysManagerService extends BaseService<TSysuser> {

	@Autowired
	private TSysuserMapper serviceMapper;

	public TSysuserMapper getServiceMapper() {
		return serviceMapper;
	}
	
	/**
	 * 获取信息
	 * @param account
	 * @return
	 */
	public List<TSysuser> getList() {
		List<TSysuser> page = serviceMapper.getList();
		return page ; 
	}
	/**
	 * 据ID查询管理员
	 */
	public TSysuser selectByPrimaryKey(int id) {
		TSysuser user = serviceMapper.selectByPrimaryKey(id);
		return user ; 
	}
	
	
	/**
	 * 保存管理员信息
	 * @param Sms
	 * @return
	 */
	public void insert(TSysuser s){
			serviceMapper.insert(s);
	}

	public void updateByPrimaryKey(TSysuser bean) {
		serviceMapper.updateByPrimaryKey(bean);
	}

	public void deleteByPrimaryKey(Integer id) {
		serviceMapper.deleteByPrimaryKey(id);
		
	}

	public List<TSysuser> getListByPara(TSysuserVo bean) {
		List<TSysuser> page = serviceMapper.getListByPara(bean);
		return page ;
	}

	public TSysuserVo getSysUserbyUsername(TSysuser bean) {
		return serviceMapper.getSysUserbyUsername(bean);
	}

	
	
}
